<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" type="text/css" href="css/index.css" />
  <style>
    .my-container {
      position: relative;
      top: 20px;
      left: 50px;
    }
  </style>
</head>

<body>
  <div class="my-container">
    <input type="text"><button id="btn">点击触发验证码</button>
  </div>
  <div id="verification">
    <div class="refresh"></div>
    <div id="resultBox"></div>
    <div id="box"></div>
  </div>

  <script src="js/jquery-1.9.1.min.js"></script>
  <script src="js/index.js" type="text/javascript" charset="utf-8"></script>
  <script>
    $('#btn').click(() => {
      $('#verification').show()
      init();
    })
  </script>

</body>

</html>